package com.mew.slots.core.game.zzdzz.message;

import com.mew.slots.core.common.messge.response.SlotsPlayResponseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Description: TODO
 * @Author King.Song
 * @Date 2020/11/10 0010
 **/
@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class ZzdzzPlayResponseMessage extends SlotsPlayResponseMessage {
    public int row;//行
    public int col;//列
    public int course;//进程
    public int freeType;//免费类型
    public int bonus;//是否出转盘
    public int progressBar;//进度条
    public long[] freeCoins;//免费图标的金币
    public long[] roulettes;//转盘金币
    public long scatterCoin;//特殊图标金币

    @Override
    public void write(ByteBuf b) {
        super.write(b);
        writeInt(b,row);
        writeInt(b,col);
        writeInt(b,course);
        writeInt(b,freeType);
        writeInt(b,bonus);
        writeInt(b,progressBar);
        writeInt(b,freeCoins.length);
        for(long fc:freeCoins){
            writeLong(b,fc);
        }
        writeInt(b,roulettes.length);
        for(long r:roulettes){
            writeLong(b,r);
        }
        writeLong(b,scatterCoin);
    }

    @Override
    public SlotsPlayResponseMessage read(ByteBuf byteBuf) {
        return null;
    }


}
